home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / cool / ge_cool.lha / GE_COOL2.1 / Makeexamplestargs < prev    next >
Text File  |  1992-06-12  |  2KB  |  74 lines

  1. #
  2. # Copyright (C) 1991 Texa Instruments Incorporated.
  3. #
  4. # Permission is granted to any individual or institution to use, copy, modify,
  5. # and distribute this software, provided that this complete copyright and
  6. # permission notice is maintained, intact, in all copies and supporting
  7. # documentation.
  8. #
  9. # Texas Instruments Incorporated provides this software "as is" without
  10. # express or implied warranty.
  11. #
  12.  
  13. ERROR    = 2>/dev/null
  14. SUMMARIZE = cat  
  15.  
  16. .SUFFIXES: .C .o .out .x .i
  17.  
  18. .C.o: 
  19.     $(CC) $(CCFLAGS) $(DEFINES) $(INCLUDES) $*.C
  20.  
  21. .o.x: $*.o
  22.     $(PURIFY) $(CC) -o $*.x $*.o $(LIBRARYS)
  23.  
  24. .x.out: $*.x
  25.     $*.x > $*.out $(ERROR) 
  26.  
  27. summary: $(RESULTS)
  28.     @$(ECHO) "======================="
  29.     - @for RESULT in $(RESULTS); do \
  30.         $(SUMMARIZE) $$RESULT;\
  31.         done
  32.     @$(ECHO) "======================="
  33.  
  34. $(RESULTS): $(PROGRAMS)
  35.  
  36. $(PROGRAMS): $(OBJECTS)
  37.  
  38. all: summary
  39.  
  40. allclean clean:
  41.     - $(RM) $(OBJECTS) $(PROGRAMS) $(RESULTS) $(BACKUPS) *.i
  42.  
  43. alldepend depend: $(SOURCES) $(HEADERS)
  44.     $(MKDEPEND) $(DEFINES) $(INCLUDES) $(SOURCES)
  45.  
  46. allinstall install:
  47.  
  48. alllink link:
  49.  
  50. cleanalltests:
  51.     - $(RM) $(OBJECTS) $(PROGRAMS) $(RESULTS) $(BACKUPS)
  52. cleantests:
  53.     - $(RM) $(OBJECTS) $(PROGRAMS) $(RESULTS) $(BACKUPS)
  54.  
  55.  
  56. # use these rules for debugging inside of CenterLine:
  57.  
  58. .C.i:
  59.     @$(BINDIR)/cpp \
  60.     $(DEFINES) \
  61.     -undef -B -Dc_plusplus=1 -D__cplusplus=1 -Dsun -DBSD -Dsparc -Dunix \
  62.     -I/home/oceana/software/CenterLine/c++_1.1.0-r1.0/sun4-40/include \
  63.     $(INCLUDES) \
  64.         $*.C >! $*.i
  65.     #load $*.i
  66.  
  67. load_lib load_libs load_libraries:
  68.     #load -g $(LIBRARYS) 
  69.  
  70. load_obj load_objs load_objects:
  71.     #load -g $(INCLUDES) $(OBJECTS) $(LIBRARYS)
  72.  
  73.  
  74.